package com.yfp.operation.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.operation.domain.GoodsDO;
import com.yfp.operation.service.GoodsService;
import com.yfp.operation.mapper.GoodsMapper;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.List;

/**
 * @author admin
 * @description 针对表【goods(商品表)】的数据库操作Service实现
 * @createDate 2024-05-20 09:28:47
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, GoodsDO> implements GoodsService {

    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public List<GoodsDO> findByGoodsIds(List<String> goodsIds) {
        return goodsMapper.findByGoodsIds(goodsIds);
    }

    @Override
    public List<GoodsDO> getAll() {
        return goodsMapper.getAll();
    }
}




